package com.itheima.zuoye.d06;

public class sportsman extends  Father{
    private String LearnerNumber ;

    @Override
    public void eat() {
        System.out.println("吃营养餐");
    }

    public sportsman(String name, String sex, int age, String learnerNumber) {
        super(name, sex, age);
        LearnerNumber = learnerNumber;
    }

    public sportsman(String learnerNumber) {
        LearnerNumber = learnerNumber;
    }

    public String getLearnerNumber() {
        return LearnerNumber;
    }

    public void setLearnerNumber(String learnerNumber) {
        LearnerNumber = learnerNumber;
    }
}
